#!/usr/bin/env python3.3

from euler import getCollatzLength

max=0
num=0
for i in range(2,int(1e6)+1):
  c=getCollatzLength(i)
  if c>max: 
    max=c
    num=i
print(num)
